package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
@ApiModel(value = "com.qingfeng.client.bean.Goods2attrs")
@Data
@TableName(value = "goods2attrs")
public class Goods2attrs {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "null")
    private Long id;

    /**
     * 商品id
     */
    @TableField(value = "goods_id")
    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    /**
     * 商品属性，如重量大小等
     */
    @TableField(value = "attrs_id")
    @ApiModelProperty(value = "商品属性，如重量大小等")
    private Integer attrsId;

    /**
     * 商品属性值
     */
    @TableField(value = "value")
    @ApiModelProperty(value = "商品属性值")
    private String value;



    /**
     * 如果有图片，value为悬浮图片展示的值；则填写这个字段否则为空
     */
    @TableField(value = "pic")
    @ApiModelProperty(value = "如果有图片，value为悬浮图片展示的值；则填写这个字段否则为空")
    private String pic;

    @TableField(value = "value_id")
    @ApiModelProperty(value = "属性值id")
    private Integer valueId;

    @TableField(value = "goods_common_id")
    @ApiModelProperty(value = "商品通用属性id")
    private Long goodsCommonId;


    /**
     * 临时自动，实际不存在与表中
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "规格名称")
    private String attrsName;
}
